home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Frameworks / Argus Starter 2.0 / Main / AEStarterBalloons.r < prev   
Encoding:
Text File  |  1995-06-23  |  6.2 KB  |  249 lines  |  [TEXT/KAHL]

  1. /**********************************************************************
  2.  
  3.     AEStarterBalloons.r
  4.  
  5. ***********************************************************************/
  6.  
  7. /* THINK Rez resource format */
  8. #include <Types.r>
  9. #include <BalloonTypes.r>
  10.  
  11. resource 'hmnu' (400, "Apple", purgeable) {
  12. /* header component */
  13.   HelpMgrVersion,    /* version of Help Manager */
  14.   hmDefaultOptions,  /* options */
  15.   0,                 /* balloon definition function */
  16.   0,                 /* variation code */
  17.   
  18. /* missing-items component */
  19.   HMSkipItem {
  20.     /* no missing items, so skip to menu-title component */
  21.     },
  22.  
  23. /* BEGIN */ {
  24.  
  25. /* menu-title component */
  26.   HMSkipItem {
  27.     /* Apple menu has default help balloons */
  28.     },
  29.     
  30. /* first menu-item component: About */
  31.   HMStringItem {
  32.     /* enabled */
  33.     "Displays information about this application.",
  34.     /* dimmed by application */
  35.     "",
  36.     /* checked */
  37.     "",
  38.     /* marked */
  39.     "",
  40.     },
  41.     
  42. /* END */ }
  43. };
  44.  
  45. resource 'hmnu' (401, "File", purgeable) {
  46. /* header component */
  47.   HelpMgrVersion,    /* version of Help Manager */
  48.   hmDefaultOptions,  /* options */
  49.   0,                 /* balloon definition function */
  50.   0,                 /* variation code */
  51.   
  52. /* missing-items component */
  53.   HMSkipItem {
  54.     /* no missing items, so skip to menu-title component */
  55.     },
  56.  
  57. /* BEGIN */ {
  58.  
  59. /* menu-title component */
  60.   HMStringItem {
  61.     /* enabled */
  62.     "File menu\n\nUse this menu to open documents or quit "
  63.     "this application.",
  64.     /* dimmed by application */
  65.     "",
  66.     /* dimmed by system (alerts or modal dialogs) */
  67.     "File menu\n\nUse this menu to open documents or quit "
  68.     "this application. Not available because there is a dialog box "
  69.     "on the screen.",
  70.     /* all items dimmed by system */
  71.     "This item is not available because there is a dialog "
  72.     "box on the screen.",
  73.     },
  74.     
  75. /* first menu-item component: New */
  76.   HMStringItem {
  77.     /* enabled */
  78.     "Creates new document window.",
  79.     /* dimmed by application */
  80.     "",
  81.     /* checked */
  82.     "",
  83.     /* marked */
  84.     "",
  85.     },
  86.  
  87. /* second menu-item component: Close */
  88.   HMStringItem {
  89.     /* enabled */
  90.     "Closes current document window.",
  91.     /* dimmed by application */
  92.     "Closes current document window. Not available now "
  93.     "because the application does not currently have an "
  94.     "open window.",
  95.     /* checked */
  96.     "",
  97.     /* marked */
  98.     "",
  99.     },
  100.  
  101. /* third menu-item component: Quit */
  102.   HMStringItem {
  103.     /* enabled */
  104.     "Quits this application.",
  105.     /* dimmed by application */
  106.     "",
  107.     /* checked */
  108.     "",
  109.     /* marked */
  110.     "",
  111.     },
  112.     
  113. /* END */ }
  114. };
  115.  
  116. resource 'hmnu' (402, "Edit", purgeable) {
  117. /* header component */
  118.   HelpMgrVersion,    /* version of Help Manager */
  119.   hmDefaultOptions,  /* options */
  120.   0,                 /* balloon definition function */
  121.   0,                 /* variation code */
  122.   
  123. /* missing-items component */
  124.   HMSkipItem {
  125.     /* no missing items, so skip to menu-title component */
  126.     },
  127.  
  128. /* BEGIN */ {
  129.  
  130. /* menu-title component */
  131.   HMStringItem {
  132.     /* enabled */
  133.     "Edit menu\n\nUse this menu to manipulate text.",
  134.     /* dimmed by application */
  135.     "Edit menu\n\nUse this menu to manipulate text. "
  136.     "Not available because there is nothing to edit.",
  137.     /* dimmed by system (alerts or modal dialogs) */
  138.     "Edit menu\n\nUse this menu to manipulate text. "
  139.     "Not available because there is a dialog box on "
  140.     "the screen.",
  141.     /* all items dimmed by system */
  142.     "This item is not available because there is a dialog "
  143.     "box on the screen.",
  144.     },
  145.     
  146. /* first menu-item component: Undo */
  147.   HMStringItem {
  148.     /* enabled */
  149.     "Cancels your last edit.",
  150.     /* dimmed by application */
  151.     "Cancels your last edit. Not available because "
  152.     "application doesn't support this function.",
  153.     /* checked */
  154.     "",
  155.     /* marked */
  156.     "",
  157.     },
  158.     
  159. /* second menu-item component: Divider */
  160.   HMSkipItem {
  161.     /* no help balloons for divider lines */
  162.     },
  163.     
  164. /* third menu-item component: Cut */
  165.   HMStringItem {
  166.     /* enabled */
  167.     "Cuts selected text to the Clipboard.",
  168.     /* dimmed by application */
  169.     "Cuts selected text to the Clipboard. Not available now "
  170.     "because no text is selected.",
  171.     /* checked */
  172.     "",
  173.     /* marked */
  174.     "",
  175.     },
  176.  
  177. /* forth menu-item component: Copy */
  178.   HMStringItem {
  179.     /* enabled */
  180.     "Copies selected text to the Clipboard.",
  181.     /* dimmed by application */
  182.     "Copies selected text to the Clipboard. Not available now "
  183.     "because no text is selected.",
  184.     /* checked */
  185.     "",
  186.     /* marked */
  187.     "",
  188.     },
  189.  
  190. /* fifth menu-item component: Paste */
  191.   HMStringItem {
  192.     /* enabled */
  193.     "Inserts selected text from the Clipboard.",
  194.     /* dimmed by application */
  195.     "Inserts selected text from the Clipboard. Not available "
  196.     "now because there is no text currently in the Clipboard.",
  197.     /* checked */
  198.     "",
  199.     /* marked */
  200.     "",
  201.     },
  202.  
  203. /* sixth menu-item component: Clear */
  204.   HMStringItem {
  205.     /* enabled */
  206.     "Deletes selected text.",
  207.     /* dimmed by application */
  208.     "Deletes selected text. Not available now "
  209.     "because no text is selected.",
  210.     /* checked */
  211.     "",
  212.     /* marked */
  213.     "",
  214.     },
  215.     
  216. /* END */ }
  217. };
  218.  
  219. resource 'hmnu' (kHMHelpMenuID, "Help", purgeable)
  220. {
  221.     HelpMgrVersion, 0, 0, 0   /* header component             */
  222.     HMSkipItem{               /* missing-items component      */
  223.         /* no missing items, skip to first appended menu-item */
  224.         /* component                                          */
  225.         },
  226.     {   /* first menu-item component */
  227.         HMStringResItem{  /* use an 'STR#' for help messages  */
  228.         800, 1,  /* 'STR#' res ID, index when item is enabled */
  229.         800, 2,  /* 'STR#' res ID, index when item is dimmed  */
  230.         800, 3,  /* 'STR#' res ID, index when item is checked */
  231.         0, 0     /* item cannot be marked */
  232.         },
  233.     }
  234. };
  235.  
  236. resource 'STR#' (800, "Help menu item strings")
  237. {
  238.     {
  239.         /* array StringArray: six elements */
  240.         /* [1] enabled help command */
  241.         "Provides help for this application.";
  242.         /* [2] dimmed help command */
  243.         "Provides help for this application.";
  244.         /* [3] checked help command */
  245.         "Provides help for this application.";
  246.     }
  247. };
  248.  
  249. // End of File